package com.kust.smarthome.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kust.smarthome.web.model.Watch;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author iAuzre
 * @since 2021-07-06
 */
@Repository
public interface WatchMapper extends BaseMapper<Watch> {

    //获取家人智能表的信息
    @Select("select content from watch where id=#{watchId}")
    String selectContent(Integer watchId);
}
